<template>
	<view class="f24r col363636">
		<view class="pt10r pl10r borB1SE8e8e8">
			<button class="w220r borRad10r lh70r colFff f26r disInBlo backCol409EFF"
				@click="cliAddNewsBtn"
			>
				新增群发消息
			</button>
		</view>
		<view class="pl20r pr20r">
			<view class="mt20r borRad10r bSha0010u0rgb00001 backImgLiGrTBDeedfdaFff overHid"
				v-for="item in tempList" :key="item.id" @click="goNewsDetail(item)"
			>
				<view class="f26r foWeiBold lh70r  pl20r pr20r">
					{{item.name}}
				</view>
			</view>
			<view class="lh100r teAliCenter col999" v-if="tempList.length">
				已加载全部
			</view>
			<view class="lh100r teAliCenter col999" v-if="tempList.length == 0">
				暂无数据
			</view>
		</view>
	</view>
</template>
<script>
import { inquiryToLogin } from '@/utils/utils.js'
export default {
	data() {
		return {
			token: '',
			tempList: [],
			
		}
	},
	onShow() {
		inquiryToLogin().then(res => {
			this.token = res;
			this.getDataList1();
		});
	},
	methods: {
		getDataList1() {
			console.log(1, 11)
		},
		cliAddNewsBtn() {
			uni.navigateTo({ url: '/pages/index/addNewsDetail' })
		},
		goNewsDetail(item) {
			
		}
	}
}
</script>
<style>
</style>